package com.example.travelling;

import android.os.Bundle;
import android.app.ListActivity;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class MenuGridActivity extends ListActivity {
	static final String[] menuString = new String[] { "Ẩm thực", "ATM",
		"Xe cộ", "Tham quan","Chỗ ở","Nhà hàng","Ngân hàng","Khách sạn"};

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_menu_grid);
        
        
//        setListAdapter(new ArrayAdapter<String>(this, R.layout.activity_menu_grid,
//				menuString));
        setListAdapter(new Adapter_menu_grid(this, menuString));
       
    	ListView view = getListView();
        view.setTextFilterEnabled(true);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_menu_grid, menu);
        return true;
    }
}
